package com.shujia.duotai.exer;

public class Feeder {

//    public void feedPanda(Panda panda, Bamboo bamboo) {
//        panda.eat(bamboo);
//    }
//
//    public void feedPanda(Tiger tiger, Meet meet) {
//        tiger.eat(meet);
//    }

    public void feed(Animal animal, Food food) {
        animal.eat(food);// 也用到了多态
    }
}
